﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FyndSharp.BusinessLogic;

namespace Fynd.Hermes.Web.Objects
{
    public class DefaultLogicUser : IUser
    {
        public UserInfomation LocalUser { get; private set; }
        public string Id
        {
            get
            {
                return LocalUser.Id;
            }
            set
            {
                throw new NotSupportedException();
            }
        }

        public string Name
        {
            get
            {
                return LocalUser.LoginName;
            }
            set
            {
                throw new NotSupportedException();
            }
        }

        public DefaultLogicUser(UserInfomation aLocalUser)
        {
            LocalUser = aLocalUser;
        }
    }
}